package com.song.shopping.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName book_book
 */
@TableName(value ="book_book")
@Data
public class Book implements Serializable {
    /**
     * 图书编号
     */
    @TableId(value = "bid", type = IdType.AUTO)
    private Integer bid;

    /**
     * 图书名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 作者
     */
    @TableField(value = "author")
    private String author;

    /**
     * 图书价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 库存数量
     */
    @TableField(value = "balace")
    private Integer balace;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 最后修改时间
     */
    @TableField(value = "updateTime")
    private Date updatetime;

    /**
     * 图书状态
     */
    @TableField(value = "enabled")
    private Integer enabled;

    /**
     * 出版社外键
     */
    @TableField(value = "cid")
    private Integer cid;

    /**
     * 图书类别外键
     */
    @TableField(value = "tid")
    private Integer tid;

    /**
     * 图书描述
     */
    @TableField(value = "descb")
    private String descb;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}